package com.yifeng.repo.base.security.auth.exception;

import com.gomcarter.frameworks.base.exception.CustomException;
import com.gomcarter.frameworks.base.json.ErrorCode;

/**
 * Created by daibing on 2023/9/1.
 */
public class SecurityCheckException extends CustomException {

    public SecurityCheckException() {
        super(ErrorCode.securityError);
    }

    public SecurityCheckException(String msg) {
        super(ErrorCode.securityError.getCode(), msg);
    }

    public SecurityCheckException(ErrorCode code, String msg) {
        super(code.getCode(), msg);
    }

    public SecurityCheckException(Throwable cause) {
        super(cause);
    }
}
